package com.ruoyi.teach.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 视频对象 nb_vedio
 * 
 * @author ruoyi
 * @date 2021-12-08
 */
public class NbVedio extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 视频主键 */
    private Long id;

    /** 老师ID;创建人ID */
    @Excel(name = "老师ID;创建人ID")
    private Long teacherId;

    /** 视频名称 */
    @Excel(name = "视频名称")
    private String title;

    /** 视频格式 */
    @Excel(name = "视频格式")
    private String type;

    /** 视频时长 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "视频时长", width = 30, dateFormat = "yyyy-MM-dd")
    private Date duration;

    /** 视频封面地址 */
    @Excel(name = "视频封面地址")
    private String coverPath;

    /** 视频简介 */
    @Excel(name = "视频简介")
    private String intro;

    /** 状态;0->正常 1->删除 */
    @Excel(name = "状态;0->正常 1->删除")
    private Integer status;

    /** 删除标志（0代表存在;2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setDuration(Date duration) 
    {
        this.duration = duration;
    }

    public Date getDuration() 
    {
        return duration;
    }
    public void setCoverPath(String coverPath) 
    {
        this.coverPath = coverPath;
    }

    public String getCoverPath() 
    {
        return coverPath;
    }
    public void setIntro(String intro) 
    {
        this.intro = intro;
    }

    public String getIntro() 
    {
        return intro;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("teacherId", getTeacherId())
            .append("title", getTitle())
            .append("type", getType())
            .append("duration", getDuration())
            .append("coverPath", getCoverPath())
            .append("intro", getIntro())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
